export default {
    namespaced: true,
    state: {
        id: 1,
        nickname: "neo",
        phone: 15919854464,
        password: 123456,
        //订单数量,不做订单页面
        orderCount: 36,
        //关注的老师的Id
        myAttention: [1, 2, 3, 4, 5],
        //账户余额
        balance: 56,
        //今日学习
        todayLearnTime: 36,
        //连续学习天数
        continuous: 2,
        //累计学习时间长
        total: 54,
        // 我的课程列表，课程id
        mysession: [1, 2, 3, 4, 5],
        //最近在学
        lately: [1, 2, 3],
        // 一周内每天学习时出
        latelyTime: [20, 30, 27, 62, 27, 26, 36]

    },
    getters: {
        getLatelyTime({ latelyTime }) {
            return latelyTime
        },
        getTodayLearnTime({ todayLearnTime }) {
            return todayLearnTime
        },
        getContinuous({ continuous }) {
            return continuous
        },
        getTotal({ total }) {
            return total
        }
    },
    mutations: {
        // 在没有开启强制命令空间时，mutation或actions或getters中的名称不要重名
        addNum(state, data) {
            // console.log('count')
            state.num += data
        }
    }
}